<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>卖家中心</title>
    <link rel="stylesheet" href="../css/common.css">
    <link rel="stylesheet" href="../css/my.css">
    <script src="../js/jquery-3.2.1.min.js"></script>
    <script src="../js/media.js"></script>
    <script src="../js/common.js"></script>
    <style>
        .public-header {
            background: rgba(95, 49, 4, 1);
        }

        .public-header-center {
            color: #fff !important;
        }
    </style>
</head>

<body>
    <!--头部-->
    <div class="public-header flex">
        <!--<span class="public-header-left-search"></span>-->
        <!--<span class="public-header-left-back"></span>-->
        <span class="public-header-center" style="background:url(../img/切换@2x.png) no-repeat 2.16rem;background-size:.1rem .13rem;"
            onclick="javascript:window.location.href='../wode/my-page.html'">卖家中心</span>
        <span class="public-header-right"></span>
    </div>

    <!--正文-->
    <div class="Sellers-center bc-gray" style="padding-bottom:8vw;">
        <div class="section1">
            <img src="../img/头像@2x.png" alt="" onclick="javascript:window.location.href='../page/personal-information.html'">
            <p class="t1">
                <span>这里是昵称</span>
                <em></em>
                <i>VIP<font>1</font></i>
            </p>
            <p class="t2">
                粉丝:0
            </p>
            <div class="box flex">
                <div class="left" onclick="javascript:window.location.href='../wode/recharge.html'">
                    <span></span>
                    <p>账户</p>
                </div>
                <div class="right" onclick="javascript:window.location.href='../page/message.html'">
                    <span></span>
                    <p>消息</p>
                </div>
            </div>
        </div>
        <span style="display:block;height:40px;background:#fff;"></span>
        <div class="section2">
            <div class="top flex">
                <span>我的订单</span>
                <span>全部</span>
            </div>
            <ul class="flex bottom" id="info_page">
                <li data-tab='1'>
                    <img src="../img/付款@2x.png" alt="">
                    <p>未付款</p>
                </li>
                <li data-tab='2'>
                    <img src="../img/发货@2x.png" alt="">
                    <p>待发货</p>
                </li>
                <li data-tab='3'>
                    <img src="../img/待收货@2x.png" alt="">
                    <p>待收货</p>
                </li>
                <li data-tab='4'>
                    <img src="../img/售后@2x.png" alt="">
                    <p>售后</p>
                </li>
                <li onclick="javascript:window.location.href='../page/Shop-report.html'">
                    <img src="../img/报表@2x.png" alt="">
                    <p>店铺报表</p>
                </li>
            </ul>
        </div>
        <siv class="section3 clearfix">
            <ul>
                <li class="flex" onclick="javascript:window.location.href='../page/Lot-management.html'">
                    <div class="left">
                        <img src="../img/产品管理@2x.png" alt="">
                        <span class="span1">产品管理</span>
                    </div>
                    <em></em>
                </li>
                <li class="flex" onclick="javascript:window.location.href='../page/Promotion-center.html'">
                    <div class="right">
                        <img src="../img/推广@2x.png" alt="">
                        <span class="span2">推广中心</span>
                    </div>
                    <em></em>
                </li>
                <li class="flex" onclick="javascript:window.location.href='../page/Send-a-message.html'">
                    <div class="left">
                        <img src="../img/消息@2x 2.png" alt="">
                        <span class="span3">群发消息</span>
                    </div>
                    <em></em>
                </li>
                <li class="flex" onclick="javascript:window.location.href='../page/Extended-service.html'">
                    <div class="right">
                        <img src="../img/服务@2x.png" alt="">
                        <span class="span4">扩展服务</span>
                    </div>
                    <em></em>
                </li>
                <li class="flex" onclick="javascript:window.location.href='../page/setting-center.html'">
                    <div class="left">
                        <img src="../img/个人中心-设置@2x.png" alt="">
                        <span class="span5">设置中心</span>
                    </div>
                    <em></em>
                </li>

         
            </ul>
        </siv>
    </div>

    <!--底部-->
    <div class="public-footer flex">
        <div class="button-1" onclick="javascript:window.location.href='../index.html'">
            <span></span>
            <p>首页</p>
        </div>
        <div class="button-2" onclick="javascript:window.location.href='../fenlei/fenlei.html'">
            <span></span>
            <p>分类</p>
        </div>
        <div class="button-3" onclick="javascript:window.location.href='../faxian/faxian.html'">
            <span></span>
            <p>发现</p>
        </div>
        <div class="button-4 active">
            <span></span>
            <p>我的</p>
        </div>

    </div>
    <script>
        $(function () {
            // 点击待付款等，进入相应的页面
            $('#info_page li:not(:last-child)').click(function () {
                window.location.href = '../page/Seller-order.html?tab_num=' + $(this).data('tab')
            })

            $.ajax({
                url: base_url + 'ZITAOHUI/user',
                type: 'get',
                data: {
                    userId: u_id,
                    value: 1
                },
                success: function (data) {
                    console.log(data);
                    let all_data = data.extend.user;
                    console.log(all_data)
                    let user_nike_name = all_data.storeName;
                    let user_type = all_data.storeLevel;
                    let att_num = all_data.storeTotalFans;
                    let img = all_data.storeImage;
                    // 获取storeid并存储在session里面
                    let s_id = all_data.storeId;
                    console.error(s_id)
                    window.sessionStorage.setItem('s_id', s_id)
                    $('.Sellers-center .section1 img').attr('src', img)
                    $('.Sellers-center .section1 .t1 span').html(user_nike_name);
                    $('.Sellers-center .section1 .t1 i span').html(user_type);
                    $('.Sellers-center .section1 .t2 font').html(att_num);



                }
            })
        })
    </script>

</body>

</html>